import request from './request.js'
request.defaults.baseURL = 'http://127.0.0.1:3000/public/'
const loadTypes=function(){
   return   request.get("types")
}
const loadFilms = function (params={}){
    return request.get('films',{
        params
    })

}
export default {
    loadTypes, loadFilms
}